package com.handy.socket.demo;

import org.apache.log4j.Logger;

import com.handy.socket.Notifier;
import com.handy.socket.Server;


public class ServerDemo{
	
	public static void main(String[] args) {
		ServerHandler handler = new ServerHandler();
		Notifier.getNotifier().addListener(handler);

		Server server = new Server();
		//server.initialize("221.232.160.103",8110);
		server.initialize("192.168.18.15",8110);
		Thread tServer = new Thread(server);
		tServer.start();
		log.info("服务启动完毕");
	}

	private static Logger log = Logger.getLogger(ServerDemo.class);
}
